home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / utility / ffg155.zip / DEMO_BAT.ZIP / DELALL.BAT < prev    next >
DOS Batch File  |  1993-06-25  |  1KB  |  38 lines

  1. @echo off
  2.   if %1.==. goto USAGE:
  3.   cls
  4.   echo Searching for files to select for deletion...
  5.   ffg>del$tmp$.bat /fs! /fb1pf.e %1 %2 %3 %4 %5 %6 %7 %8 %9
  6.   cls
  7.   echo Next you can edit out any lines with names of files you don't want deleted.
  8.   pause
  9.   ted del$tmp$.bat
  10.   if exist del$tmp$.bak del del$tmp$.bak
  11.   cls
  12.   echo Press ^C to abort without deleting any files.
  13.   echo Otherwise to begin deleting files
  14.   pause
  15.   echo on
  16.   @call del$tmp$ del
  17.   @echo off
  18.   del del$tmp$.bat
  19.   goto END
  20. :USAGE
  21.   cls
  22.   echo USAGE: %0 d:
  23.   echo.
  24.   echo        Where d: is a list of drives to clean up.
  25.   echo.
  26.   echo        EXAMPLE: %0 CDE:*.[bak,tmp]
  27.   echo.
  28.   echo                 Deletes *.bak and *.tmp files from drives C:, D:, E:
  29.   echo.
  30.   echo "%0" deletes specified files from the specified disk(s).  You are
  31.   echo given an opportunity to override the delete operation for specific files
  32.   echo or can abort the entire operation.
  33.   pause
  34. :END
  35. @echo off
  36. echo Done.  Press any key for next demonstration...
  37. pause>nul
  38.